package com.niuniu.rushdorm.mapper;

import com.niuniu.rushdorm.pojo.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Meng
 * 2022/11/24
 */
@Mapper
public interface StudentMapper {
    Student getStudentByUid(Long uid);

    List<Student> getStudentByUids(@Param("ids")List<Long> ids);

    @Select("select uid from student_info where studentid = #{stduentId}")
    Long getUidByStudentId(String studentId);
}
